package com.trinity.sample.view.thumboverlay

import android.graphics.Point


class ThumbLineConfig {

  /**
   *  缩略图数量
   */
  var thumbnailCount = 10

  /**
   *  缩略图 的长-x ,宽-y
   */
  var thumbnailPoint: Point? = null

  /**
   *  屏幕宽度
   */
  var screenWidth: Int = 0

  class Builder {
    private val mConfig = ThumbLineConfig()

    fun thumbPoint(point: Point): Builder {
      mConfig.thumbnailPoint = point
      return this
    }

    fun screenWidth(screenWidth: Int): Builder {
      mConfig.screenWidth = screenWidth
      return this
    }

    fun thumbnailCount(thumbnailCount: Int): Builder {
      mConfig.thumbnailCount = thumbnailCount
      return this
    }

    fun build(): ThumbLineConfig {
      return mConfig
    }

  }
}
